package com.zkyc.framework.website.mapper;

import com.zkyc.framework.common.pojo.SystemFileRefTag;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * (SystemFileRefTag)表数据库访问层
 *
 * @author libingchuan
 * @since 2022-06-20 19:14:25
 */
@Mapper
public interface SystemFileRefTagMapper extends BaseMapper<SystemFileRefTag>{

    @Delete("delete from system_file_ref_tag where file_id = #{fileId}")
    void delete(Long fileId);

    @Delete("delete from system_file_ref_tag where media_tag_id = #{tagId}")
    void deleteByTagId(Integer tagId);


}

